﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Duson.Controls.Pager
{
    public class PageMethod_PostBack : PageMethodAbstract
    {
        public override string GetHref(string text, int pageIndex)
        {
            if (string.IsNullOrEmpty(text) || pageIndex == 0)
                return "";

            return string.Format("<a href=\"{0}\">{1}</a>  ", MyPager.Page.ClientScript.GetPostBackClientHyperlink(MyPager, pageIndex.ToString()), text);
        }

    }
}
